local yinzhan = fk.CreateSkill{
  name = "investiture__yinzhan",
}

Fk:loadTranslationTable{
  ["investiture__yinzhan"] = "饮盏",
  [":investiture__yinzhan"] = "你可以将所有手牌当一张【酒】使用，本回合鄂崇禹下次造成伤害后，拥有“引盏”的角色摸此次转化牌数张牌。",
  ["#investiture__yinzhan"] = "饮盏：可以将所有手牌当一张【酒】使用",

  ["@investiture__yinzhan-turn"] = "饮盏",
}

yinzhan:addAcquireEffect(function (self, player)
  if not player.room:hasSkill("investiture__yinzhan_delay") then
    player.room:addSkill("investiture__yinzhan_delay")
  end
end)

yinzhan:addEffect("viewas", {
  anim_type = "special",
  prompt = "#investiture__yinzhan",
  pattern = "analeptic",
  card_filter = Util.FalseFunc,
  view_as = function (self, player, cards)
    local card = Fk:cloneCard("analeptic")
    card.skillName = yinzhan.name
    card:addSubcards(player:getCardIds("h"))
    return card
  end,
  enabled_at_play = function (self, player)
    return not player:isKongcheng()
  end,
  enabled_at_response = function (self, player, response)
    return not player:isKongcheng() and not response
  end,
  after_use = function (self, player, use)
    player.room:setPlayerMark(player, "@investiture__yinzhan-turn", #use.card.subcards)
  end
})

return yinzhan